<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Retrieves a field</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="solrdocument.offsetexists.html">SolrDocument::offsetExists</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solrdocument.offsetset.html">SolrDocument::offsetSet</a></div>
 <div class="up"><a href="class.solrdocument.html">SolrDocument</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="solrdocument.offsetget" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SolrDocument::offsetGet</h1>
  <p class="verinfo">(PECL solr &gt;= 0.9.2)</p><p class="refpurpose"><span class="refname">SolrDocument::offsetGet</span> &mdash; <span class="dc-title">Retrieves a field</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-solrdocument.offsetget-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="class.solrdocumentfield.html" class="type SolrDocumentField">SolrDocumentField</a></span> <span class="methodname"><strong>SolrDocument::offsetGet</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$fieldName</code></span>
   )</div>

  <p class="para rdfs-comment">
   This is used to retrieve the field when the object is treated as an array.
  </p>

 

 </div>


 <div class="refsect1 parameters" id="refsect1-solrdocument.offsetget-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">fieldName</code></em></dt>

     <dd>

      <p class="para">
       The name of the field.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-solrdocument.offsetget-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns a SolrDocumentField object.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="solrdocument.offsetexists.html">SolrDocument::offsetExists</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solrdocument.offsetset.html">SolrDocument::offsetSet</a></div>
 <div class="up"><a href="class.solrdocument.html">SolrDocument</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
